package ecommerce.factory.interfaces;

import java.util.ArrayList;

import java.util.HashMap;

import ecommerce.exception.EcommerceException;
import ecommerce.to.ProductoTO;

public interface ProductoDAO {
        public void crear(ProductoTO entidad) throws EcommerceException;
        public void modificar(ProductoTO entidad) throws EcommerceException;
        public void eliminar(int id) throws EcommerceException;
        public ArrayList<ProductoTO> traerTodo() throws EcommerceException;
        public ProductoTO traerPorId(int id) throws EcommerceException;
        public ArrayList<ProductoTO> traerPorNombre(String nombre) throws EcommerceException;
        public HashMap traerDatosGrafica1() throws EcommerceException;
}
